<?php


namespace App\Logic;


use App\Interfaces\Order;
use App\Interfaces\OrderValidator;


class SuspendedAccountValidator implements OrderValidator
{

    public function validate(Order $order)
    {
        // TODO: Implement validate() method.
        if ($order->account->isSUppended()) {
            throw new \Exception("Suspended accounts may not order");
        }
    }
}